package com.wanxi.test;

import javax.swing.plaf.synth.SynthOptionPaneUI;

public class ReplaceString {
    public static void main(String[] args) {
        String aa = "fasdTMDfas23";
        String str = "";
        str = aa.replace("TMD", "***");
        System.out.println(str);
//        for (int i = 0; i < aa.length(); i++) {
////            aa.replace('T', '*');
//
////            if (aa.charAt(i) == 'T' || aa.charAt(i) == 'M') {
////                str += "*";
////            } else {
////                str += aa.charAt(i);
////            }
//        }

    }
}
